<template>
  <div class="NavBar">
    <div class="left">
      <div v-if="leftFlag">
        <span>&lt;</span>
        <span>{{ left }}</span>
      </div>
    </div>
    <div class="conter">{{ conter }}</div>

    <div class="right">
      <div v-if="rightFalg">
        <span> {{ right }} </span>
      </div>
    </div>
  </div>
</template>
<script>

export default {
  name: 'NavBar',

  props: {
    left: {
      type: String,
      default: '返回'
    },
    leftFlag: {
      type: Boolean
    },
    conter: {
      type: String
    },
    rightFalg: {
      type: Boolean
    },
    right: {
      type: String
    }
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style   scoped>
.NavBar {
  display: flex;
  justify-content:space-between;
}
</style>
